import React, { Component } from "react";
import { connect } from "react-redux";
import { incre } from "../store/actions/count";
class SagaDemo extends Component {
  render() {
    return (
      <div>
        <button onClick={this.props.incre}>+</button>
        <h1>演示redux-saga的使用，{this.props.count}</h1>
      </div>
    );
  }
}
export default connect(({ count }) => ({ count }), { incre })(SagaDemo);
